package com.mall.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.OrderStatus;
import com.mall.book.mappers.OrderStatusMapper;
import com.mall.book.service.OrderStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * Created by Dizziness on 2022/3/24 10:20
 */
@Service
public class OrderStatusServiceImpl implements OrderStatusService {
    @Autowired
    OrderStatusMapper orderStatusMapper;

    @Override
    public boolean saveBatch(Collection<OrderStatus> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<OrderStatus> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<OrderStatus> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(OrderStatus entity) {
        return false;
    }

    @Override
    public OrderStatus getOne(Wrapper<OrderStatus> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<OrderStatus> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<OrderStatus> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<OrderStatus> getBaseMapper() {
        return orderStatusMapper;
    }

    @Override
    public Class<OrderStatus> getEntityClass() {
        return OrderStatus.class;
    }

    @Override
    public Collection<OrderStatus> getByOrderId(String orderId) {
        return orderStatusMapper.selectByOrderId(orderId);
    }

    @Override
    public List<OrderStatus> getByMap(HashMap<String, Object> queryMap) {
        return orderStatusMapper.selectByMap(queryMap);
    }

    @Override
    public List<OrderStatus> getByIdEvenDeleted(String subOrderId) {
        return orderStatusMapper.selectByIdEvenDeleted(subOrderId);
    }
}
